Use of the bang (!
) operator leads to late binding and results in inefficient code. Use the slightly more verbose dot (.
)
notation instead.
Noncompliant code example
MsgBox ObjectWithDefaultProperty!Param
Compliant solution
MsgBox ObjectWithDefaultProperty.DefaultProperty("Param")